#ifndef __DP_DEF_H__
#define __DP_DEF_H__

#include <stdint.h>

#define CONST_WINRANGE_EN             (1<<0)
#define CONST_WINVEL_EN               (1<<1)
#define CONST_ANGLE_EN                (1<<2)

typedef struct
{
	uint16_t len;
	uint16_t dstOffsetAddr;
	uint16_t srcInc;
	uint16_t dstInc;
	uint32_t srcFlashAddr;
}WIN_CFG;

typedef struct
{
	int32_t calibAnt2_r;       //0080
	int32_t calibAnt2_i;       //0084
	uint16_t angleDstAddr;     //0088
	uint16_t angleFlashLen;
	uint32_t angleFlashSrcAddr;

	WIN_CFG winRange;
	WIN_CFG winVel;

	uint32_t prepCfg0;         //0094
	uint32_t prepCfg1;         //0098
	uint32_t prepCfg2;		     //009C

	uint16_t cycleNum;         //00A8
	uint16_t constEn;          //00AA

	uint16_t crcLen;           //0xFC
	uint16_t crcVal;           //0xFE
}PARAM_DATAPREP;

#endif
